@extends('front.header')
@section('title','往期视频')
@section('red')
    <div class="nav">
        <ul class="nav_body">
            <li><a  href="/">首页</a></li>
            <li><a  href="/expert/lecture">名家讲堂</a></li>
            <li><a href="/expert/front-list">名家风采</a></li>
            <li><a class="current" href="/video/show">往期视频</a></li>
        </ul>
    </div>
@endsection
@section('content')
    <div class="main">
        <div class="past_video">
            <div class="past_video_list">
                <div class="one_line clearfix">
                    @foreach($video as $v)

                        <div class="review_ship mar_0" style="margin: 40px">
                            <div class="review_ship">
                                <div class="review_ship_img">
                                    <a  href="/video/review/{{$v->id}}">
                                        <img src="{{$v->thumb}}" style="width: 100%; height: 100%; object-fit: cover;"/>
                                    </a>
                                </div>
                                <div class="review_ship_txt">
                                    <div class="review_ship_title break"><a  href="/video/review/{{$v->id}}">{{$v->title}}</a></div>
                                    @if(isset($v->connection[0]))
                                        <div class="review_ship_intro clearfix">
                                        <div class="review_ship_left">
                                            <p>主持：<a href="/expert/front-list-detail/{{$v->connection[0]->id}}">{{$v->connection[0]->name}}</a></p>
                                            <p>日期：<span class="txt_999">{{$v->begin}}</span></p>
                                        </div>
                                        <div class="review_ship_right">
                                            <a class="info_btn" href="/video/review/{{$v->id}}">查看详情</a>
                                        </div>
                                    </div>
                                    @else
                                        <div class="review_ship_intro clearfix">
                                            <div class="review_ship_left">
                                                <p>主持：<a href="/">暂无</a></p>
                                                <p>日期：<span class="txt_999">{{$v->begin}}</span></p>
                                            </div>
                                            <div class="review_ship_right">
                                                <a class="info_btn" href="/video/review/{{$v->id}}">查看详情</a>
                                            </div>
                                        </div>
                                    @endif
                                </div>
                            </div>
                        </div>

                    @endforeach
                </div>
                <div class="center" >{{$video->links('page')}}</div>
            </div>
        </div>
    </div>
    </body>
    </html>
@endsection
